package com.rd.student.jiaji.class2.duyukun.Day0807;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;

public class DLT {
    public static void main(String[] args) throws IOException {

        Random random = new Random();
        ArrayList arr = new ArrayList();

        for (int i = 0; i < 8; i++) {
            if (i == 6) {
                arr.add("|");
            }
            int num = random.nextInt(36) + 1;
            arr.add(num);
        }
        System.out.println(arr);

        File file = new File("daletou.txt");
        FileWriter writer = new FileWriter(file);
        writer.write(arr.toString());
        writer.close();


    }


}
